﻿<?php 
$type=$_GET['type'];
$file=$_GET['file'];
include_once '../../conn/all.php';
$res=sql("s", "face", "*", "where user='123'");
if ($type=="logo") {
?>
<img src="<?='img/'.$res['logo'] ?>" height="300px"/>
<?php 
}elseif($type=="main"){
		if ($res["main_img"]!='') {
		
			$img=explode("|",$res["main_img"]);
			for ($i=1;$i<count($img);$i++){
				echo '<img src="img/'.$img[$i].'" height="300px"/>';
			}
?>
<?php
 }
 }
?>